home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / FineSlider.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-25  |  872 b   |  35 lines

  1. /* FineSlider.h        by Mike Gravina        December 1991
  2.  * A subclass of Slider that allows Alternate key to slow slider 
  3.  * down by scale factor
  4.  *
  5.  * Copyright (C)  1991  The Board of Trustees of
  6.  * The Leland Stanford Junior University.  All Rights Reserved.
  7.  */
  8.  
  9. #define FINESLIDER_H_ID "$Id: FineSlider.h,v 1.3 1991/12/24 11:11:16 pfkeb Rel $"
  10.  
  11. #import <appkit/Slider.h>
  12.  
  13. @interface FineSlider:Slider
  14. {
  15.     float        scaleFactor;    /* amount of slow down */
  16.     float               centerValue;
  17.     float               returnValue;
  18.     float               offset;
  19.     BOOL                inAltSequence;
  20. }
  21.  
  22. - (float) floatValue;
  23.  /*
  24.   * Returns the value of the Slider.   If the Alternate key is held
  25.   * down, then scales the normal response of a Slider by
  26.   * the preset scale factor.
  27.   */
  28.  
  29. - setScaleFactor:(float) aFloat;
  30.  /*
  31.   * Sets the scale factor to aFloat.
  32.   */
  33.   
  34. @end
  35.